/**
 *  Copyright (c) Filipe Manana <fdmanana@gmail.com>
 *  All rights reserved.
 * 
 *  This file is part of jsdet.
 *
 *  jsdet is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as published
 *  by the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  jsdet is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with jsdet.  If not, see <http://www.gnu.org/licenses/>.
 *
 */


package jsdet.parsing.scopes;

import jsdet.parsing.structures.FunctionDetails;


/**
 * Matches ANTLR grammar scope $JSScope defined JavaScript.g
 * @author fdmanana
 *
 */
public class VariablesScope {

    private int level;
    private String name;
    private boolean isFunctionScope;
    private FunctionDetails functionDetails;

    public VariablesScope(int level, String name, boolean isFunctionScope, FunctionDetails functionDetails) {
        this.level = level;
        this.name = name;
        this.isFunctionScope = isFunctionScope;
        this.functionDetails = functionDetails;
    }

    public int getLevel() {
        return level;
    }

    public String getName() {
        return name;
    }

    public boolean isFunctionScope() {
        return isFunctionScope;
    }

    public FunctionDetails getFunctionDetails() {
        return functionDetails;
    }
}
